package cn.com.cfae.iras.doc.analyze.parse.model.iaad;

import cn.com.cfae.iras.doc.analyze.parse.model.ExtractItem;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static cn.com.cfae.iras.doc.analyze.parse.model.BizBaseModel.SYNONYM_SPLIT_CHAR;

/**
 * Created by 佟媛媛 on 18/11/5.
 * 水泥行业
 */
public class SNModel {

    public static String MODEL_NAME = "SN";

    /**
     * 熟料产能（吨）
     */
    private static String SLCN = "SLCN";

    /**
     * 房地产新开工面积
     */
    private static String XKGMJ = "XKGMJ";

    /**
     * 资产规模
     */
    private static String ZCGM = "ZCGM";

    /**
     * 产能利用率
     */
    private static String CNLYL = "CNLYL";


    /**
     * EBITDA总资产报酬率
     */
    private static String EBITDA = "EBITDA";

    /**
     * 是否出具非标准审计意见
     */
    private static String SJYJ = "SJYJ";

    /**
     * 毛利率
     */
    private static String MLL = "MLL";

    /**
     * 营业收入
     */
    private static String YYSR = "YYSR";

    /**
     * 营业成本
     */
    private static String YYCB = "YYCB";

    /**
     * 净利润
     */
    private static String JLR = "JLR";

    /**
     * 资产负债率
     */
    private static String ZCFZL = "ZCFZL";


    /**
     * 总资产
     */
    private static String ZZC = "ZZC";

    /**
     * 总负债
     */
    private static String ZFZ = "ZFZ";


    /**
     * 经营性净现金流净额
     */
    private static String XJL = "XJL";


    /**
     * 流动比率
     */
    private static String LDBL = "LDBL";

    /**
     * 流动资产
     */
    private static String LDZC = "LDZC";

    /**
     * 流动负债
     */
    private static String LDFZ = "LDFZ";

    /**
     * 短期借款
     */
    private static String DQJK = "DQJK";

    /**
     * 长期借款
     */
    private static String CQJK = "CQJK";

    /**
     * 一年内到期非流动负债
     */
    private static String FLDFZ = "FLDFZ";

    /**
     * 应付债券
     */
    private static String YFZQ = "YFZQ";

    /**
     * 应付短期债券
     */
    private static String YFDQZQ = "YFDQZQ";

    /**
     * 应付长期债券
     */
    private static String YFCQZQ = "YFCQZQ";

    /**
     * 其他非流动负债
     */
    private static String QTFLDFZ = "QTFLDFZ";

    /**
     * 销售商品、提供劳务收到的现金
     */
    private static String SDXJ = "SDXJ";

    /**
     * 货币资金
     */
    private static String HBZJ = "HBZJ";

    private static Map<String, String> items = new HashMap<>();

    static {
        items.put(SLCN, "熟料产能|熟料产量");
        items.put(XKGMJ, "房地产新开工面积|新开工面积");
        items.put(CNLYL, "水泥产能利用率|产能利用率");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
